<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加学生信息</title>
    <style>
        .form-container {
            width: 400px;
            margin: 20px auto;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
        }
        input[type="text"],
        input[type="number"] {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .btn-submit {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .btn-submit:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <h2>添加学生信息</h2>
        <form action="insert_stu_2.jsp" method="post">
            <div class="form-group">
                <label for="id">学号 *</label>
                <input type="number" id="id" name="id" required>
            </div>
            <div class="form-group">
                <label for="name">姓名</label>
                <input type="text" id="name" name="name">
            </div>
            <div class="form-group">
                <label for="sex">性别</label>
                <input type="text" id="sex" name="sex">
            </div>
            <div class="form-group">
                <label for="age">年龄</label>
                <input type="number" id="age" name="age">
            </div>
            <div class="form-group">
                <label for="weight">体重(kg)</label>
                <input type="number" id="weight" name="weight" step="0.1">
            </div>
            <div class="form-group">
                <label for="height">身高(cm)</label>
                <input type="number" id="height" name="height" step="0.1">
            </div>
            <button type="submit" class="btn-submit">提交</button>
        </form>
    </div>
</body>
</html> 